'''
Created on 06/05/2012

@author: Tassio
'''
from core.ui.designer.crud import Ui_Form
from PyQt4.QtGui import QWidget, QAbstractItemView

class CrudWidget(QWidget, Ui_Form):
    def __init__(self, parent=None):
        QWidget.__init__(self, parent)
        self.setupUi(self)
        
        self.grid.setSelectionMode(QAbstractItemView.SingleSelection)
        self.grid.setSelectionBehavior(QAbstractItemView.SelectRows)